package puzzle.projecteuler.p100;

public class Problem071 {

	/**
	 *     p/q immediately to the left of 3/7
	 * <=> 3q-7p = 1 and max(q), q<=1000000
	 * <=> q = 7*k+5, p = 3*k+2, 
	 * @param args
	 */
	public static void main(String[] args) {
		
		int m = 1000000;
		int k = (m-5)/7;
		int p = 3*k+2;
		int q = 7*k+5;
		System.out.println(p + "/" + q);
	}

}
